package com.wing.cabinet.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.cabinet.model.entity.StorageInventoryInout;
import com.wing.cabinet.model.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 暂存柜存刀/取刀;存/取维修/回收刀-Dao
 *
 * @author
 */
@Mapper
public interface StorageInventoryInoutDao extends BaseMapper<StorageInventoryInout> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StorageInventoryInoutVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<StorageInventoryInoutVO> list4app(@Param("page") Page<StorageInventoryInoutVO> page, @Param("params") Map<String, Object> params);


    List<StorageInventoryInoutVO> list(@Param("page") Page<StorageInventoryInoutVO> page, @Param("params") Map<String, Object> params);

    List<StorageInventoryInoutVO> list4OldNew(@Param("page") Page<StorageInventoryInoutVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StorageInventoryInoutVO get4appById(Long id);

    int update4Notify(@Param("status") Integer status,@Param("notifyUserId") Long notifyUserId,@Param("notifyUserName") String notifyUserName,@Param("checkResultId") Long checkResultId,@Param("supplierId")Long supplierId,@Param("supplierName")String supplierName);

    StorageInventoryInoutVO get4appByInOutIdAndSkuCode(@Param("id")Long id, @Param("skuCode")String skuCode);

    /**
     * 导出存入记录
     * @param params
     * @return
     */
    List<StorageInventoryInoutVO> list(@Param("params") Map<String, Object> params);
    List<OldNewStorageExportVO> getOldNewStorageExportVOExport(@Param("params") Map<String, Object> params);
    List<TemporaryStorageExportVO> getTemporaryStorageExport(@Param("params") Map<String, Object> params);

    List<StorageRecycleInventoryInoutVO> list4Export(@Param("params") Map<String, Object> params);

    /**
     * 暂存取出记录导出
     * @param params
     * @return
     */
    List<StorageTempInventoryOutVO> exportOutList(@Param("params") Map<String, Object> params);

    /**
     * 暂存存入记录列表
     * @param page
     * @param params
     * @return
     */
    List<StorageInventoryInoutVO> pageListNew(@Param("page") Page<StorageInventoryInoutVO> page, @Param("params") Map<String, Object> params);
}
